<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Configuring and building the library</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../boost_typeindex.html" title="Chapter 39. Boost.TypeIndex 4.2">
<link rel="prev" href="getting_started.html" title="Getting started">
<link rel="next" href="how_it_works.html" title="How it works">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="getting_started.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_typeindex.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="how_it_works.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="boost_typeindex.config"></a><a class="link" href="config.html" title="Configuring and building the library">Configuring and building the library</a>
</h2></div></div></div>
<p>
      TypeIndex is a header only library and it does not use Boost libraries that
      require building. You just need to <code class="computeroutput"><span class="preprocessor">#include</span>
      <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">type_index</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
      to start using it.
    </p>
<p>
      The library supports a number of configuration macros, defining which require
      full rebuild of all the projects that use TypeIndex:
    </p>
<div class="table">
<a name="boost_typeindex.config.configuration_macros"></a><p class="title"><b>Table 39.1. Configuration macros</b></p>
<div class="table-contents"><table class="table" summary="Configuration macros">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
              <p>
                Macro name
              </p>
            </th>
<th>
              <p>
                Short description
              </p>
            </th>
</tr></thead>
<tbody>
<tr>
<td>
              <p>
                <code class="computeroutput"><a class="link" href="../doxygen/boost_typeindex_header_reference/type__index_8hpp_1a1f36cbfc68e152f766416d8def27bb56.html" title="Macro BOOST_TYPE_INDEX_USER_TYPEINDEX">BOOST_TYPE_INDEX_USER_TYPEINDEX</a></code>
              </p>
            </td>
<td>
              <p>
                Macro that allows you to use your own implementation of TypeIndex
                instead of the default all around the projects and libraries.
              </p>
            </td>
</tr>
<tr>
<td>
              <p>
                <code class="computeroutput"><a class="link" href="../doxygen/boost_typeindex_header_reference/type__index_8hpp_1a9d2fd5c65259b62ed652f7011670c55a.html" title="Macro BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY">BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY</a></code>
              </p>
            </td>
<td>
              <p>
                Macro that must be defined if you are mixing RTTI-on and RTTI-off.
              </p>
            </td>
</tr>
<tr>
<td>
              <p>
                <code class="computeroutput"><a class="link" href="../doxygen/boost_typeindex_header_reference/type__index_8hpp_1aa1457292331bac605f998b53d85e4422.html" title="Macro BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING">BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING</a></code>
                and <code class="computeroutput"><a class="link" href="../doxygen/boost_typeindex_header_reference/type__index_8hpp_1a5e8825576a5e3115161687310469396a.html" title="Macro BOOST_TYPE_INDEX_FUNCTION_SIGNATURE">BOOST_TYPE_INDEX_FUNCTION_SIGNATURE</a></code>
              </p>
            </td>
<td>
              <p>
                Macros that allow you to specify parsing options and type name generating
                macro for RTTI-off cases.
              </p>
            </td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>
      You can define configuration macros in the <code class="computeroutput"><span class="identifier">bjam</span></code>
      command line using one of the following approaches:
    </p>
<pre class="programlisting">    b2 variant=release define=BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY stage
</pre>
<pre class="programlisting">    b2 variant=release "define=BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING='(39, 1, true, \"T = \")'" stage
</pre>
<p>
      However, it may be more convenient to define configuration macros in the "boost/config/user.hpp"
      file in order to automatically define them both for the library and user's
      projects.
    </p>
</div>
<div class="copyright-footer">Copyright © 2012-2025 Antony
      Polukhin<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="getting_started.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_typeindex.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="how_it_works.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
